<?php

namespace app\api\controller;

use app\common\controller\Api;
use think\Db;

/**
 * 轮播
 */
class Banner extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 轮播
     */
    public function list()
    {
        $list = Db::name('slide')->select();
        $this->success('请求成功', $list);
    }
}
